package com.smart.workflow.repositories;

import java.util.Collection;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.smart.workflow.markers.EventRepository;

@Repository("eventRepository")
public class EventRepositoryImpl implements EventRepository {
	
	@Resource(name="processRepository")
	private ProcessRepositoryImpl processImpl;

	@Override
	public Collection<Object> processesForEvents(Object event) {
		return processImpl.getAllProcesses();
	}

	@Override
	public void registerInterestedProcesses(Class eventClass, Class processClass) {
		// TODO Auto-generated method stub
		
	}

}
